# kubernetes kubelet config

{% if not containerd.enabled -%}
KUBELET_ARGS="--kubeconfig={{ kubeadminconfig }} --config=/etc/kubernetes/kubelet.yaml --fail-swap-on=false --node-ip={{ hostvars[inventory_hostname]['ansible_' + node_interface].ipv4.address }}"
{% else %}
KUBELET_ARGS="--kubeconfig={{ kubeadminconfig }} --config=/etc/kubernetes/kubelet.yaml --runtime-cgroups=/system.slice/containerd.service --container-runtime=remote --runtime-request-timeout=15m --container-runtime-endpoint=unix:///run/containerd/containerd.sock --fail-swap-on=false --node-ip={{ hostvars[inventory_hostname]['ansible_' + node_interface].ipv4.address }}"

{% endif -%}

# kubelet network 
KUBELET_NETWORK_ARGS="--network-plugin=cni --cni-conf-dir={{ cni_conf_dir }} --cni-bin-dir={{ cni_bin_dir }}"
